package com.demo2do.boyle.backend.service.customer.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.demo2do.boyle.backend.dao.CustomerMessageDaoSupport;
import com.demo2do.boyle.backend.service.customer.CustomerMessageService;
import com.demo2do.boyle.common.entity.customer.Customer;
import com.demo2do.boyle.common.entity.customer.message.CustomerMessage;
import com.demo2do.boyle.common.entity.customer.message.Type;
import com.demo2do.core.service.impl.GenericServiceImpl;
/**
 * 
 * @author mohanlan
 *
 */
@Service("customerMessageService")
public class CustomerMessageServiceImpl extends GenericServiceImpl<CustomerMessage> implements CustomerMessageService {
	
	@Autowired
	private CustomerMessageDaoSupport customerMessageDaoSupport;

	/*
	 * (non-Javadoc)
	 * @see com.demo2do.boyle.client.service.CustomerMessageService#create(com.demo2do.boyle.common.entity.customer.Customer)
	 */
	public void create(Customer customer, String content, Type type) {
		customerMessageDaoSupport.create(customer, content, type);
	}

}
